﻿using System;
using System.Collections.Generic;
using System.Reflection;
using System.Text;

namespace DataMapper
{
    /// <summary>
    ///     标记字段为自增长类型的字段
    /// </summary>
    [AttributeUsage(AttributeTargets.Property, AllowMultiple = false)]
    [System.Serializable]
    public class IdentityAttribute : Attribute
    {
        public static IdentityAttribute GetAttribute(MemberInfo member)
        {
            return (IdentityAttribute)GetCustomAttribute(member, typeof(IdentityAttribute));
        }
    }
}
